Add type annotations for GtkShortcutAction types
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 17 Nov 2020 14:17:26 +0000 (14:17 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 17 Nov 2020 14:17:26 +0000 (14:17 +0000)
The constructors and singleton getters need proper annotations for their
return type, given that we return a base type.

gtk/gtkshortcutaction.c

index 431a1202ce519ad1a4a68404923d9b04f3507f49..6a043724390e80d5197316dfb79bb883e55b0917 100644 (file)
@@ -319,7 +319,7 @@ gtk_nothing_action_init (GtkNothingAction *self)
  * Gets the nothing action. This is an action that does nothing and where
  * activating it always fails.
  *
- * Returns: (transfer none): The nothing action
+ * Returns: (transfer none) (type GtkNothingAction): The nothing action
  */
 GtkShortcutAction *
 gtk_nothing_action_get (void)
@@ -409,7 +409,7 @@ gtk_callback_action_init (GtkCallbackAction *self)
  * Create a custom action that calls the given @callback when
  * activated.
  *
- * Returns: (transfer full): A new shortcut action
+ * Returns: (transfer full) (type GtkCallbackAction): A new shortcut action
  */
 GtkShortcutAction *
 gtk_callback_action_new (GtkShortcutFunc callback,
@@ -491,7 +491,7 @@ gtk_activate_action_init (GtkActivateAction *self)
  * Gets the activate action. This is an action that calls gtk_widget_activate()
  * on the given widget upon activation.
  *
- * Returns: (transfer none): The activate action
+ * Returns: (transfer none) (type GtkActivateAction): The activate action
  */
 GtkShortcutAction *
 gtk_activate_action_get (void)
@@ -566,7 +566,7 @@ gtk_mnemonic_action_init (GtkMnemonicAction *self)
  * Gets the mnemonic action. This is an action that calls
  * gtk_widget_mnemonic_activate() on the given widget upon activation.
  *
- * Returns: (transfer none): The mnemonic action
+ * Returns: (transfer none) (type GtkMnemonicAction): The mnemonic action
  */
 GtkShortcutAction *
 gtk_mnemonic_action_get (void)